Skip to content

Note that frozendict is also a hashed collection that invokes the __hash__ method of objects in data model documentation #148867

Open
jonathandung wants to merge 2 commits intopython:mainfrom
jonathandung:patch-1
Open

Note that frozendict is also a hashed collection that invokes the __hash__ method of objects in data model documentation #148867
jonathandung wants to merge 2 commits intopython:mainfrom
jonathandung:patch-1

Conversation

@jonathandung
Copy link
Copy Markdown
Contributor

@jonathandung jonathandung commented Apr 22, 2026

The portion of the data model page documenting object.__hash__ currently acknowledges that besides the built-in hash function, 'operations on members of hashed collections including set, frozenset and dict' would also call __hash__. That list should be expanded in light of 3.15 implementing frozendict, which also falls into this category.


📚 Documentation preview 📚: https://cpython-previews--148867.org.readthedocs.build/

@jonathandung
Copy link
Copy Markdown
Contributor Author

Please add skip issue.

Comment thread Doc/reference/datamodel.rst Outdated
Copy link
Copy Markdown
Member

@ZeroIntensity ZeroIntensity left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix the Oxford comma change, per @johnslavik's suggestion, and then I'll happily merge this.

@bedevere-app
Copy link
Copy Markdown

bedevere-app Bot commented Apr 22, 2026

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

4 participants